add start and stop script for Counter example #178
add start and stop script for Counter example #178chainho wants to merge 1 commit intoapache:masterfrom
Conversation
|
Do you think whether this patch is useful for Ratis? |
| source $DIR/common.sh | ||
|
|
||
| # One of the examples, e.g. "filestore" or "arithmetic" | ||
| example="$1" |
There was a problem hiding this comment.
It seems to be better to print a list of examples and then allow user to choose (which should include validation)
| example="$1" | ||
| shift | ||
|
|
||
| subcommand="$1" |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| kill $(jps -lv | grep 'ratis' | grep 'CounterServer' | grep -v 'grep' | awk '{print $1}') |
There was a problem hiding this comment.
Out of curiosity: will this way leave garbages generated by servers locally?
There was a problem hiding this comment.
In fact, I think ratis-examples/src/main/bin./stop-all.sh will server your stop server purpose.
|
This PR has been marked as stale due to 60 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in ~30 days. |
|
Thank you for your contribution. This PR is being closed due to inactivity. Please contact a maintainer if you would like to reopen it. |
Add handy tool for start or stop three Ratis server at once
Hello,
I am a new user for Ratis.
I found that in example module, there is no convenient method to start three Ratis server for testing, user have to specified one by one in terminal or IDE.
So, the scripts can be a handy tool for new user testing.
Hope it helpful.
Shucheng Hou